﻿Imports System
Imports System.Runtime.CompilerServices

Namespace Extentions

    Module ColorExtentions
        <Extension()> _
        Public Function toGDI(ByVal MediaColor As Color) As Drawing.Color
            Return Drawing.Color.FromArgb(MediaColor.A, MediaColor.R, MediaColor.G, MediaColor.B)
        End Function

        <Extension()> _
        Public Function toWPF(ByVal DrawingColor As Drawing.Color) As Color
            Return System.Windows.Media.Color.FromArgb(DrawingColor.A, DrawingColor.R, DrawingColor.G, DrawingColor.B)
        End Function
    End Module

End Namespace